package com.twu.biblioteca.view.book;

import com.twu.biblioteca.model.BibliotecaBook;

import java.util.List;

public class ListView {
    public static String transformToString(List<BibliotecaBook> bookList) {
        String response = "";
        for (BibliotecaBook book : bookList){
            response+=book.getName()+"\n";
        }
        return response.equals("")?"sorry we dont have books here !":response;
    }
}
